package ericXie.com.events 
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import flash.display.DisplayObjectContainer;
	
	/**
	 * 加载图片事件
	 * @author EricXie
	 */
	public class LoadImageEvent extends CairngormEvent 
	{
		public static const EVENT_ID:String = "LoadImageEvent";
		/**
		 * 
		 * @param	_imgPath 图片地址
		 * @param   _name	图片名称，用于定位
		 * @param	_imgContainer 加载图片的容器
		 * @param   containerWidth 容器宽度
		 * @param	containerHeight 容器高度
		 */
		public function LoadImageEvent(_imgPath:String, _name:String, _imgContainer:DisplayObjectContainer = null, _containerWidth:Number = 0, _containerHeight:Number = 0 ) 
		{
			super(EVENT_ID);
			var obj:Object = new Object();
			obj.imgPath = _imgPath;
			obj.name = _name;
			obj.imgContainer = _imgContainer;
			obj.containerWidth = _containerWidth;
			obj.containerHeight = _containerHeight;
			this.data = obj;
		}
		
	}

}